<head>
<title>{$title} {$viewp.page_name} - {$viewp.description}</title>	
<meta name="Description" content="{$viewp.description}" />
<meta name="Keywords" content="{$viewp.keywords}" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Sylwester Kowal - 21w.pl" />
<meta name="Robots" content="index,follow" />	

<meta name="verify-v1" content="J242g9Hh4R0EA4E+HLWF2vkZgTD9ZECWxMbf1oixAJI=" />

<script type="text/javascript" src="/public/scripts/swfobject/swfobject.js"></script>

<link type="text/css" href="/public/scripts/jQuery/css/smoothness/jquery-ui-1.7.1.custom.css" rel="Stylesheet" />
<script type="text/javascript" src="/public/scripts/jQuery/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/public/scripts/jQuery/js/jquery-ui-1.7.1.custom.min.js"></script>

<link type="text/css" rel="stylesheet" href="/public/scripts/jQuery/wysiwyg/jquery.rte.css" />
<script type="text/javascript" src="/public/scripts/jQuery/wysiwyg/jquery.rte.js"></script>
<script type="text/javascript" src="/public/scripts/jQuery/wysiwyg/jquery.rte.tb.js"></script>
<script type="text/javascript" src="/public/scripts/jQuery/wysiwyg/jquery.ocupload-1.1.4.js"></script>

<script type="text/javascript" src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"vertical-tree.js"}"></script>

<link href="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"1002_001_101109.css"}" rel="stylesheet" type="text/css" />
<link href="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"vertical-tree.css"}" rel="stylesheet" type="text/css" />

{literal}
<script type="text/javascript" language="javascript">
function IE5_setBlurredImage(type, imgWidth, imgHeight) 
{	
    var position = findPos(document.getElementById("content-wrap"));
    var dimensions = getPageSizeWithScroll();
    
    //alert("Type : " + document.body.scrollTop);
    
    var ScrollTop = document.body.scrollTop;
	if (ScrollTop == 0)
	{
		if (window.pageYOffset)
			ScrollTop = window.pageYOffset;
		else
			ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
	}
	//alert("ScrollTop : " + ScrollTop);
    
    if(type == "TL")
    {
		var offsetX = parseInt(position[0] * -1);
		var offsetY = parseInt(position[1] * -1 + ScrollTop);
		positionBackground("content-wrap", offsetX, offsetY);
    }
    
    if(type == "ML")
    {
		var offsetX = parseInt(position[0] * -1);
		var offsetY = (document.documentElement.clientHeight / 2) - (imgHeight / 2) - position[1] + ScrollTop;
		positionBackground("content-wrap", offsetX, offsetY);
    }
    
    if(type == "BL")
    {
		var offsetX = parseInt(position[0] * -1);
		var offsetY = document.documentElement.clientHeight - imgHeight - position[1] + ScrollTop;
		positionBackground("content-wrap", offsetX, offsetY);
    }
}


function getPageSizeWithScroll()
{
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
		xWithScroll = document.body.offsetWidth;
  	}
	arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll);
	//alert( 'The height is ' + yWithScroll + ' and the width is ' + xWithScroll );
	return arrayPageSizeWithScroll;
}


function findPos(obj) 
{
	var curleft = curtop = 140;
	if (obj.offsetParent) 
	{
		do 
		{
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		} 
		while (obj = obj.offsetParent);
	}
	return [curleft,curtop];
}

function positionBackground(frame, xOffset, yOffset) 
{
	//alert("Positioning : " + xOffset + " x " + yOffset);
	document.getElementById(frame).style.backgroundPosition = xOffset + "px " + yOffset + "px"; 
	//alert("Done!");
}

</script>

<script type="text/javascript" language="javascript">
//<![CDATA[
if($.browser.msie && $.browser.version < 7 ){
window.onresize = function() {IE5_setBlurredImage('BL', 0, 140);};window.onscroll = function() {IE5_setBlurredImage('BL', 0, 140);};
IE5_setBlurredImage('BL', 0, 140);
}
//]]>
</script>
{/literal}
<script type="text/javascript">
var WysArr;
var mWysArr;
$(document).ready(function() {ldelim}
	WysArr = $('.htmledytor').rte({ldelim}
		controls_rte: rte_toolbar,
		controls_html: html_toolbar
	{rdelim});
	mWysArr = $('.mhtmledytor').rte();
{rdelim});
</script>

<!--[if lte IE 6]>
<script type="text/javascript" src="/public/scripts/supersleight-min.js"></script>
<![endif]-->
    
</head>